import type { PromiseType } from '#types/utils.d'

import SysRolesApi from '#/api/system/roles'

export const PageApi = SysRolesApi.inst

type TableList = PromiseType<ReturnType<typeof PageApi.getPageList>>['records']
export type TableListItem = TableList[number]
